package day12.hmoework20;

/**
 * 猎人类
 */
public class Hunter extends Data implements Hunt,Attack{
    public Hunter(){}
    public Hunter(String name,int level){
        super(name,level);
    }
    @Override
    public void hunt() {
        System.out.println("我是" + this.getLevel() + "级的" +getName() + "我可以打猎");
    }

    @Override
    public void attack() {
        System.out.println("我是" + this.getLevel() + "级的" +getName() + "我可以攻击");
    }
}
